package com.base.common.persistent.dao;

import com.base.common.persistent.model.SmsReport;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface SmsReportMapper {
	
	/**
	 * 添加消息记录
	 *  
	 * @param smsReport
	 * @return
	 */
	int addSmsReport(SmsReport smsReport);
	
	/**
	 * 更新消息阅读状态
	 * 
	 * @param readTime
	 * @param status
	 * @return
	 */
	int updateReadTimeStatusById(
			@Param(value = "readTime") Date readTime,
			@Param(value = "status") int status,
			@Param(value = "id") int id);

	/**
	 * 
	 * 
	 * @param visiblenessValue
	 * @param valueOf
	 * @return
	 */
	int updateReceiveVisiblenessById(@Param(value = "visiblenessValue") int visiblenessValue, @Param(value = "id") int id);
}
